﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RedfieldWeather.Controls
{
	public partial class Winds : System.Web.UI.UserControl
	{
		public void SetCurrentConditions(RFW.Weather.CurrentConditions cc)
		{
			lblDirectionDescription.Text = cc.Wind.DirectionDescription;
			lblDirection.Text = cc.Wind.Direction.ToString("N0");
			lblWindSpeed.Text = string.Format("{0:N0} mph", cc.Wind.Speed);
			lblGust.Text = string.Format("Gust: {0:N0} mph", cc.Wind.Gust);
		}
	}
}